import request from '@/utils/request'
export const getEmployeesList = () => request.get('/sys/user/simple')
export const getEmployeeList = (params) => request.get('/sys/user', { params })
export const addEmplotee = (data) => request.post('/sys/user', data)
export const delEmplotee = (id) => request.delete(`/sys/user/${id}`)
/**
 * @description: 导入excel
 * @param {*} data
 * @return {*}
 */
export const importEmployee = (data) => request.post('/sys/user/batch', data)
export const assignRoles = (data) => request.put('/sys/user/assignRoles', data)
export function getJobDetail(id) {
  return request({
    url: `/employees/${id}/jobs`,
    method: 'get'
  })
}

